package com.kgc.store.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 入库单详情
 */
public class InStoreDetail implements Serializable {
    @ExcelIgnore
    private Integer id;
    @ExcelProperty("入库单单编号")
    private String inStoreCode;
    @ExcelIgnore
    private Integer goodId;
    @ExcelProperty("商品编号")
    private String goodsCode;
    @ExcelProperty("商品名")
    private String goodsName;
    @ExcelProperty("商品库存")
    private Integer stock;
    @ExcelProperty("商品税率")
    private BigDecimal tax;
    @ExcelProperty("商品种类")
    private String kname;
    @ExcelProperty("商品规格")
    private String goodsType;
    @ExcelProperty("商品数量")
        private Integer count;
    @ExcelProperty("备注")
    private String notes;
    @ExcelIgnore
    private Integer storeId;
    @ExcelProperty("仓库")
    private String storeName;
    @ExcelProperty("商品单价")
    private BigDecimal price;
    @ExcelProperty("商品单位")
    private String unit;
    @ExcelProperty("商品含税单价")
    private BigDecimal taxSinglePrice;
    @ExcelProperty("含税总价")
    private BigDecimal taxSumPrice;
    @ExcelProperty("总价")
    private BigDecimal sumPrice;
    @ExcelProperty("单位成本")
    private BigDecimal inStoreSingleCost;
    @ExcelProperty("总成本")
    private BigDecimal inStoreSumCost;

    @ExcelIgnore
    private Integer isDelete;
    @ExcelIgnore
    private Integer createId;
    @ExcelIgnore
    private String createName;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @ExcelIgnore
    private Date createDate;
    @ExcelIgnore
    private Integer updateId;
    @ExcelIgnore
    private String updateName;
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateDate;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInStoreCode() {
        return inStoreCode;
    }

    public void setInStoreCode(String inStoreCode) {
        this.inStoreCode = inStoreCode;
    }

    public Integer getGoodId() {
        return goodId;
    }

    public void setGoodId(Integer goodId) {
        this.goodId = goodId;
    }


    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }



    public BigDecimal getTaxSinglePrice() {
        return taxSinglePrice;
    }

    public void setTaxSinglePrice(BigDecimal taxSinglePrice) {
        this.taxSinglePrice = taxSinglePrice;
    }

    public BigDecimal getTaxSumPrice() {
        return taxSumPrice;
    }

    public void setTaxSumPrice(BigDecimal taxSumPrice) {
        this.taxSumPrice = taxSumPrice;
    }

    public BigDecimal getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getCreateId() {
        return createId;
    }

    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public BigDecimal getInStoreSingleCost() {
        return inStoreSingleCost;
    }

    public void setInStoreSingleCost(BigDecimal inStoreSingleCost) {
        this.inStoreSingleCost = inStoreSingleCost;
    }

    public BigDecimal getInStoreSumCost() {
        return inStoreSumCost;
    }

    public void setInStoreSumCost(BigDecimal inStoreSumCost) {
        this.inStoreSumCost = inStoreSumCost;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(String goodsType) {
        this.goodsType = goodsType;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public BigDecimal getTax() {
        return tax;
    }

    public void setTax(BigDecimal tax) {
        this.tax = tax;
    }

    public String getKname() {
        return kname;
    }

    public void setKname(String kname) {
        this.kname = kname;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "InStoreDetail{" +
                "id=" + id +
                ", inStoreCode='" + inStoreCode + '\'' +
                ", goodId=" + goodId +
                ", goodsCode='" + goodsCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", stock=" + stock +
                ", tax=" + tax +
                ", kname='" + kname + '\'' +
                ", goodsType='" + goodsType + '\'' +
                ", count=" + count +
                ", notes='" + notes + '\'' +
                ", storeId=" + storeId +
                ", storeName='" + storeName + '\'' +
                ", price=" + price +
                ", unit='" + unit + '\'' +
                ", taxSinglePrice=" + taxSinglePrice +
                ", taxSumPrice=" + taxSumPrice +
                ", sumPrice=" + sumPrice +
                ", inStoreSingleCost=" + inStoreSingleCost +
                ", inStoreSumCost=" + inStoreSumCost +
                ", isDelete=" + isDelete +
                ", createId=" + createId +
                ", createName='" + createName + '\'' +
                ", createDate=" + createDate +
                ", updateId=" + updateId +
                ", updateName='" + updateName + '\'' +
                ", updateDate=" + updateDate +
                '}';
    }
}


